<%@ Page Language="C#" AutoEventWireup="true" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<%@ Register Assembly="AdventureWorks.Cinema.Client.Rss.WebControls" Namespace="AdventureWorks.Cinema.Client.Rss.WebControls"
    TagPrefix="adventureworks" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>News RSS Feed</title>
</head>
<body>
    <form id="form1" runat="server">
        <adventureworks:RssRepeater ID="NewsRepeater" runat="server" DataSourceID="NewsDataSource" RssDescription="<%$ Resources:RssDescription %>" RssLink="<%$ Resources:RssLink %>" RssTitle="<%$ Resources:RssTitle %>">
		    <ItemTemplate>
			        <item>
				        <title><%# DataBinder.Eval(Container.DataItem, "Subject") %></title>
				        <description><%# DataBinder.Eval(Container.DataItem, "Text") %></description>
				        <pubDate><%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:r}") %></pubDate>
			        </item>
		    </ItemTemplate>
        </adventureworks:RssRepeater>
        <br />
        <asp:ObjectDataSource ID="NewsDataSource" runat="server" SelectMethod="GetNews" TypeName="AdventureWorks.Cinema.Client.Rss.BusinessHelper">
        </asp:ObjectDataSource>
    </form>
</body>
</html>
